{include file="public/header" /}
<body class="bgc hide-top">
<div class="cart-container">
    <img src="/static/index/img/icon57.png" alt="">
    <div class="cart-content profile-content">
        <ul class="profile-set">
            <li onclick="load_href('{:url(\'user/setting\')}',2)">
                <img src="/static/index/img/icon59.png" alt="">
            </li>
        </ul>

        <div class="profile-news">
            <p class="flex-center">
                <img src="{if $user.photo}{$user.photo}{else}cache('system')['default_photo']{/if}" alt="">
            </p>
            <div class="rgt">
                <p>{$user.nickname}【{$user.code}】</p>
                <div style="padding: 10px 0;font-size: 15px;"><?php echo substr_replace($user->mobile,'****',3,4);?></div>
                <div style="display: flex;">
                    {if $user.level}
                    <div style="background: #000;width:50px;border-radius: 10px;padding: 3px;display: flex;align-items: center;justify-content: center">
                        <img src="/static/index/img/icon60.png" alt="">{$user.level.title}
                    </div>
                    {/if}
                </div>

            </div>
        </div>

        <ul class="profile-nav">
            {foreach name="assets" key="key" item="vo"}
            <li onclick="load_href('{:url(\'account/record\',[\'type\'=>$key])}',2)">
                <p><span><?php echo $user->assets->$key;?></span></p>
                <div>{$vo}</div>
            </li>
            {/foreach}
        </ul>

        <div class="profile-order">
            <div class="flex-layout">我的订单
                <a href="{:url('order/my_order')}">全部订单 <i class="layui-icon layui-icon-right"></i> </a>
            </div>
            <ul class="profile-order-list">
                <li>
                    <a href="{:url('order/my_order')}?type=1">
                        <p class="flex-center">
                            <img src="/static/index/img/icon61.png" alt="">
                        </p>
                        <div>待付款</div>
                        <?php $count = getOrderCount($user['id'],1);?>
                        {if $count > 0}
                        <span>{$count}</span>
                        {/if}
                    </a>
                </li>
                <li>
                    <a href="{:url('order/my_order')}?type=2">
                        <p class="flex-center">
                            <img src="/static/index/img/icon61.png" alt="">
                        </p>
                        <div>待发货</div>
                        <?php $count = getOrderCount($user['id'],2);?>
                        {if $count > 0}
                        <span>{$count}</span>
                        {/if}
                    </a>
                </li>
                <li>
                    <a href="{:url('order/my_order')}?type=3">
                        <p class="flex-center">
                            <img src="/static/index/img/icon61.png" alt="">
                        </p>
                        <div>待收货</div>
                        <?php $count = getOrderCount($user['id'],3);?>
                        {if $count > 0}
                        <span>{$count}</span>
                        {/if}
                    </a>
                </li>
                <li>
                    <a href="{:url('order/my_order')}?type=4">
                        <p class="flex-center">
                            <img src="/static/index/img/icon61.png" alt="">
                        </p>
                        <div>已完成</div>
                    </a>
                </li>
            </ul>
        </div>

        <div class="profile-order">
            <div class="flex-layout">常用功能</div>
            <ul class="profile-order-list profile-common">
                <li>
                    <a href="{:url('account/index')}">
                        <p class="flex-center">
                            <img src="/static/index/img/icon65.png" alt="">
                        </p>
                        <div>我的钱包</div>
                    </a>
                </li>
                <li>
                    <a href="{:url('draw/index')}">
                        <p class="flex-center">
                            <img src="/static/index/img/icon66.png" alt="">
                        </p>
                        <div>我要提现</div>
                    </a>
                </li>
                <li>
                    <a href="{:url('transfer/index')}">
                        <p class="flex-center">
                            <img src="/static/index/img/icon67.png" alt="">
                        </p>
                        <div>账户转账</div>
                    </a>
                </li>
                <li>
                    <a href="{:url('remit/index')}">
                        <p class="flex-center">
                            <img src="/static/index/img/icon68.png" alt="">
                        </p>
                        <div>账户充值</div>
                    </a>
                </li>
                <li>
                    <a href="{:url('exchange/index')}">
                        <p class="flex-center">
                            <img src="/static/index/img/icon67.png" alt="">
                        </p>
                        <div>账户转换</div>
                    </a>
                </li>
                <li>
                    <a href="{:url('user/my_team')}">
                        <p class="flex-center">
                            <img src="/static/index/img/icon70.png" alt="">
                        </p>
                        <div>我的团队</div>
                    </a>
                </li>
                <li>
                    <a href="{:url('user/contact')}">
                        <p class="flex-center">
                            <img src="/static/index/img/icon71.png" alt="">
                        </p>
                        <div>联系客服</div>
                    </a>
                </li>
                <li>
                    <a href="{:url('user/share')}">
                        <p class="flex-center">
                            <img src="/static/index/img/icon72.png" alt="">
                        </p>
                        <div>邀请好友</div>
                    </a>
                </li>
                <li>
                    <a href="{:url('news/index')}">
                        <p class="flex-center">
                            <img src="/static/index/img/icon73.png" alt="">
                        </p>
                        <div>系统公告</div>
                    </a>
                </li>
                <li>
                    <a href="{:url('message/index')}">
                        <p class="flex-center">
                            <img src="/static/index/img/icon74.png" alt="">
                        </p>
                        <div>投诉建议</div>
                    </a>
                </li>
            </ul>
        </div>
    </div>
</div>

{include file="public/menu" select="4" /}

</body>
{include file="public/footer"/}
</html>